const axios = require('axios')

const sendLoginMsgCode = (phone, randomCode) => {
  return axios({
    method: 'post',
    url: 'https://api-v2.xdclass.net/send_sms',
    data: {
      appid: "fPzUW1kz1EAhVrsGpL",
      appSecret: "OMvHeBri1zQHzZIgDhuEb4BeYS9dOVpG",
      code: randomCode,
      phoneNum: phone,
      templateCode: "SMS_168781429"
    }
  })
}
  module.exports = sendLoginMsgCode;

// (async () => {
//   console.log((await sendLoginMsgCode(18518218357, '1234')).data)
// })()